From: Richard M. Stallman Date: Sun, 10 Aug 1997 00:15:53 +0000 (+0000) Subject: (init_system_name): If domain is null, don't add a period. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~79817 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9b80a5aa027b158ae2a7314d60cfe54bf239f228;p=emacs.git (init_system_name): If domain is null, don't add a period. --- diff --git a/src/sysdep.c b/src/sysdep.c index 8a8ccbd885f..9a73b1c059d 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2324,7 +2324,7 @@ init_system_name () strcpy (fqdn, hostname); if (domain[0] == '.') strcpy (fqdn + hostlen, domain); - else + else if (domain[0] != 0) { fqdn[hostlen] = '.'; strcpy (fqdn + hostlen + 1, domain);